const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  userInfo: state => state.user.userInfo,
  // routers: state => state.user.routers, // 异步权限路由数组（动态加载的路由）
  // addRouters: state => state.user.addRouters, // 公共页面的路由数
  routers: state => state.permission.routers, // 异步权限路由数组（动态加载的路由）
  addRouters: state => state.permission.addRouters, // 公共页面的路由数
  

}
export default getters
